home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
vdtwn
/
tvf
/
asmhd6
/
tw1hd6
/
zoom.hd6
< prev
next >
Wrap
Text File
|
1993-07-08
|
1KB
|
89 lines
ds_name db '\KOMEI\実物\tvf_prg\ZOOM',0
paint_wd:
re_paint:
mouse_in:
ret
be_called:
;===== ZOOM UP mode =====
push ebp
push ds
push es
mov ax,1ch
mov ds,ax
mov es,ax
align 4
zoom_up: mov ah,7 ;水平移動範囲指定
mov dx,0
mov bx,180
call MOUSE ;pword ptr fs:[MB]
mov ah,8 ;垂直移動範囲指定
mov dx,0
mov bx,120
call MOUSE ;pword ptr fs:[MB]
align 4
#zoom_up: call MOUSE1 ;pword ptr fs:[MSR]
mov ah,03h ;位置読み取り
call MOUSE ;pword ptr fs:[MB]
movzx eax,dx
movzx esi,bx
imul esi,400h ;SourceVRAM座標算出
shl eax,1
add esi,eax
mov edi,40000h ;DestinationVRAM座標(^^;)
mov ebp,400h-4 ;work
mov edx,400h
mov ecx,120/2
;拡大率は、2倍
align 4
#drawing: push ecx
mov cl,16
REPT 2
REPT 180
lodsw
mov ebx,eax ;この方が早い
shl eax,cl
mov ax,bx
stosd
add edi,ebp
stosd
sub edi,edx
ENDM
add esi,400h-180*2
add edi,800h-360*2
ENDM
pop ecx
dec ecx
jnz #drawing
mov ax,0901h
int 90h
xor dh,0FFh
je #zoom_up
pop es
pop ds
pop ebp
ret
look_me:
call sub_esi
dd 0,0
dw 0,0,18,42,20,10,15,1,0,0